// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: Markus Gutschke

#ifndef HTTP_H__
#define HTTP_H__

#include "connection.h"
#include "multipart.h"
#include "oauth2.h"


int openHTTPSocket(struct Connection *conn, const char *method,
                   const char *url, const char *header, struct OAuth2 *oauth2,
                   const struct MultiPart *multipart,
                   enum MultiPartEncoding encoding);
char *GET(const char *url, struct OAuth2 *oauth2);
char *POST(const char *url, struct OAuth2 *oauth2,
           const struct MultiPart *multipart, enum MultiPartEncoding encoding);
char *httpHeaderEncoding(const char *s);

#endif  // HTTP_H__
